package zoo;

import java.util.Scanner;
import java.util.StringTokenizer;

public class J01Retangle2 {

		public static void main(String[] args) {
				
			
			Scanner scan = new Scanner(System.in);
			
			double width = 1.0;
			double height = 1.0;
			String color = "white";
			System.out.println("입력하라(가로,세로,컬러)");
			String str = scan.nextLine();
			StringTokenizer token  = new StringTokenizer(str,",");
			String widthStr =token.nextToken();
			String heightStr =token.nextToken();
			color =token.nextToken();
			width = Double.parseDouble(widthStr);
			height = Double.parseDouble(heightStr);
			double getArea = (width+height)*2;
			double getPerimeter = width*height;
			System.out.println("면적은 ? "+ getArea);
			System.out.println("둘레는 ? "+ getPerimeter);
			System.out.println("컬러는 ? "+ color);
		}
}
